package com.tencent.wxcloudrun.service;

import com.tencent.wxcloudrun.dto.Order;
import com.tencent.wxcloudrun.dto.OrderCreateRequest;

import java.util.List;
import java.util.Map;

/**
 * @author lichongbing
 * @version 1.0.0
 * @createdate 2023/3/16 14:52
 * @description: TODO
 */
public interface OrderService {
    /**
     * 订单列表
     * @param openid
     * @return
     */
    List<Order> orderList(String openid);

    /**
     * 订单，商品，快递地址
     * @param openid
     * @param json
     * @return
     */
    String addOder(String openid, OrderCreateRequest json);

    Map<String,Integer> getOrderGoodsNumber(String orderid);


    int cyTableAddOrder(String orderid,String openid, Integer goodsId, Integer number, String propertyChildIds, String key);

    int cyTableAddOrder(String orderId, String openid, String tableId, String key);

    int addOrderGoods(String orderId, Integer goodsId, Integer number, String propertyChildIds);

    int addOrderGoods(String orderId, Integer goodsId, Integer number);

    Order orderDetail(String orderId);
}
